﻿using System;
using UnityEngine;

// Token: 0x02000028 RID: 40
public class TutorialScript : MonoBehaviour
{
	// Token: 0x060000B2 RID: 178 RVA: 0x0000FCB8 File Offset: 0x0000DEB8
	private void Update()
	{
		this.checkTime -= Time.deltaTime;
		if (this.checkTime < 0f)
		{
			this.checkTime = 2f;
			if (GameManager.main.playerBody.torso.transform.position.x > 300f)
			{
				this.wentBeyondLimit = true;
			}
			if (this.wentBeyondLimit && !GameManager.main.playerBody.alive)
			{
				GameManager.main.sceneLoadTarget = "SampleScene";
				GameManager.main.fadingOut = true;
			}
		}
	}

	// Token: 0x04000191 RID: 401
	private float checkTime;

	// Token: 0x04000192 RID: 402
	private bool wentBeyondLimit;
}
